home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Programming / LEDA / incl / LEDA.020+881 / sweep_segments.h < prev    next >
C/C++ Source or Header  |  1994-08-05  |  1KB  |  39 lines

  1. /*******************************************************************************
  2. +
  3. +  LEDA  3.1c
  4. +
  5. +
  6. +  sweep_segments.h
  7. +
  8. +
  9. +  Copyright (c) 1994  by  Max-Planck-Institut fuer Informatik
  10. +  Im Stadtwald, 6600 Saarbruecken, FRG     
  11. +  All rights reserved.
  12. *******************************************************************************/
  13.  
  14.  
  15. #ifndef LEDA_SWEEPSEGMENTS_H
  16. #define LEDA_SWEEPSEGMENTS_H
  17.  
  18. #include <LEDA/plane_graph.h>
  19.  
  20. //------------------------------------------------------------------------------
  21. // line sweep for straight line segments
  22. //------------------------------------------------------------------------------
  23.  
  24. void SWEEP_SEGMENTS(const list<segment>&, const list<segment>&, 
  25.                                           GRAPH<point,int>&);
  26.  
  27. void SWEEP_SEGMENTS(const list<segment>&, list<point>&);
  28.  
  29.  
  30. inline void SWEEP_SEGMENTS(const list<segment>& L, GRAPH<point,int>& G)
  31. { list<segment> dummy;
  32.   SWEEP_SEGMENTS(L,dummy,G); }
  33.  
  34. inline void SEGMENT_INTERSECTION(const list<segment>& L, list<point>& P)
  35. { SWEEP_SEGMENTS(L,P); }
  36.  
  37. #endif
  38.